import { HeartOutlined, LikeOutlined } from '@ant-design/icons';
import React from 'react';
import './index.less';

export interface IEvaluateItemProps {
    title: string;
    content: string;
    score: number;
    key?: string;
}

export default function EvaluateItem(props: IEvaluateItemProps) {
    return (
        <div className="evaluate-item" key={props.key}>
            <div className="evaluate-item-header">
                <h2>{props.title}</h2>
            </div>
            <div className="evaluate-item-content">
                <p>{props.content}</p>
                <div className="evaluate-more">
                    <div className="evaluate-num">
                        <LikeOutlined />
                        <span>分数 {props.score}</span>
                    </div>
                    <div className="evaluate-collect">
                        <HeartOutlined />
                        <span>收藏</span>
                    </div>
                </div>
            </div>
        </div>
    );
}
